<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<div class="top_nav" th:fragment="navigation">
    <div class="nav_menu">
        <!-- side menu 缩放-->
        <div class="nav toggle">
            <a id="menu_toggle"><i class="fa fa-bars"></i></a>
        </div>
        <!-- side menu 缩放-->

        <nav class="nav navbar-nav">
            <ul class=" navbar-right">
                <!--右上角人物头像菜单-->
                <li class="nav-item dropdown open" style="padding-left: 15px;">
                    <a href="javascript:;" class="user-profile dropdown-toggle" aria-haspopup="true" id="navbarDropdown" data-toggle="dropdown" aria-expanded="false">
                        <img th:src="@{/images/img.jpg}" alt=""><span th:text="${session.userName}"></span>
                    </a>
                    <div class="dropdown-menu dropdown-usermenu pull-right" aria-labelledby="navbarDropdown">
                        <a class="dropdown-item"  th:href="@{/user-profile}"> Profile</a>
                            <a class="dropdown-item"  href="/logout"><i class="fa fa-sign-out pull-right"></i> Log Out</a>

                    </div>
                </li>
            </ul>
        </nav>
    </div>
</div>
</html>